a437fdfc7d687f204544be362e9fce509cd29265,org.springframework.context/src/main/java/org/springframework/ui/binding/Binder.java,BindingImpl,setValue,#String#,217
Before Change
}
public void setValue(String formatted) {
setValue(parse(formatted, getFormatter()));
}
public String format(Object selectableValue) {
After Change
public BindingResult setValue(String formatted) {
Formatter formatter;
try {
formatter = getFormatter();
} catch (EvaluationException e) {
// could occur the property was not found or is not readable
// TODO probably should not handle all EL failures, only type conversion & property not found?
return new ExpressionEvaluationErrorResult(property.getExpressionString(), formatted, e);
}
Object parsed;
try {
parsed = formatter.parse(formatted, LocaleContextHolder.getLocale());
} catch (ParseException e) {
return new InvalidFormatResult(property.getExpressionString(), formatted, e);
}
return setValue(parsed, formatted);
}
public String format(Object selectableValue) {